import request from '@/utils/request'

// 查询列表
// 参数 current, pageSize
export function list(data) {
  return request({
    url: 'xiechetong/sysMenu/get-all-menu',
    method: 'post',
    data: data
  })
}

// 新增
export function add(data) {
  return request({
    url: '/xiechetong/xctRepairPrecheckItem/add',
    method: 'put',
    data: data
  })
}
// 删除
export function deleteById(id){
  return request({
    url: '/xiechetong/xctRepairPrecheckItem/del/'+id,
    method: 'delete'
  })
}


// 修改
export function update(data){
  return request({
    url: '/xiechetong/xctRepairPrecheckItem/update',
    method: 'post',
    data
  })
}